{{--/**
 * Created by PhpStrom
 * User: 郭碧云
 * Date: 2021/4/23 10:12
 * Desc: 登录重置密码
 */--}}
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>重置 - {{ env('APP_NAME','max-learning') }}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="{{asset('layui/css/layui.css')}}" media="all">
    <link rel="stylesheet" href="{{asset('css/login.css')}}" media="all">
</head>
<body>

<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">

    <div class="layadmin-user-login-main">
        @include("layout.notice")
        <div class="layadmin-user-login-box layadmin-user-login-header">
            <h2>{{ env('APP_NAME','max-learning') }}</h2>
            <p>第一次登录，请重置密码</p>
        </div>
        <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
            <form action="{{ session('guard')=='system'?route('system.change',['id'=>getCurrentUser()['id']]):route('admin.change',['id'=>getCurrentUser()['id']]) }}" method="post">
                {{ csrf_field() }}
                <div class="layui-form-item">
                    <label class="layadmin-user-login-icon layui-icon layui-icon-password"
                           for="LAY-user-login-password"></label>
                    <input type="password" name="password" id="LAY-user-login-password" lay-verify="required"
                           placeholder="密码" class="layui-input">
                </div>

                <div class="layui-form-item">
                    <label class="layadmin-user-login-icon layui-icon layui-icon-password"
                           for="LAY-user-login-password"></label>
                    <input type="password" id="password_confirmation" name="password_confirmation" autocomplete="off"
                           lay-verify="required" placeholder="重复密码" class="layui-input">
                </div>

                <div class="layui-form-item">
                    <button type="submit" class="layui-btn layui-btn-sm" style="margin-left: 12%;width: 30%;" lay-submit
                            lay-filter="LAY-user-login-submit">提 交
                    </button>
                    <button type="button" class="layui-btn layui-btn-sm" style="margin-left: 18%;width: 30%;"
                            onclick="location.href='{{route('admin.logout')}}'">切换账号
                    </button>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-trans layadmin-user-login-footer">

        <p>© 2019 <a>Laravel RBAC Permission Admin</a></p>
    </div>

</div>

<script src="{{asset('layui/layui.js')}}"></script>
<script src="{{asset('js/jquery.min.js')}}"></script>
<script src="{{asset("js/admin.js")}}"></script>
<script>
    layui.use(['element', 'form', 'layer'], function () {
        var element = layui.element;
        var form = layui.form;
        var layer = layui.layer;
    });
</script>
</body>
</html>


